<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="js/jquery-ui/themes/base/all.css">
	<style>
		.u{
			width: 100%;
			border-collapse: collapse;
			height:400px;
			font-family:隶书;
			font-size:20px;
		}
		.u td{
			border:solid 1px #ccc;
		}
	</style>
	<script src="js/jquery.js"></script>
	<script src="js/jquery-ui/jquery-ui.js"></script>
	<script src="js/jquery-ui/ui/i18n/datepicker-zh-CN.js"></script>
</head>
<body>
	
	<c:choose>
	<c:when test="${null !=sessionScope.userInfo }">
	<table class="u" >
		<tr>
			<td>注册名</td>
			<td>${sessionScope.userInfo.regName}</td>
		</tr>
		<tr>
			<td>email</td>
			<td>${sessionScope.userInfo.email }</td>
		</tr>
		<tr>
			<td>生日</td>
			<td><f:formatDate value="${sessionScope.userInfo.birthday }" pattern="yyyy-MM-dd"/></td>
		</tr>
		<tr>
			<td>国家</td>
			<td>${userInfo.country.name }</td>
		</tr>
		<tr>
			<td>真实姓名</td>
			<td>${sessionScope.userInfo.realName }</td>
		</tr>
		<tr>
			<td>性别</td>
			<td>${sessionScope.userInfo.sex }</td>
		</tr>
		<tr>
			<td>地址</td>
			<td>${sessionScope.userInfo.address }</td>
		</tr>
		<tr>
			<td>手机号码</td>
			<td>${sessionScope.userInfo.mobilephone }</td>
		</tr>
<tr>
			<td>学历</td>
			<td>${sessionScope.userInfo.education }</td>
		</tr>
		<tr>
			<td>兴趣爱好</td>
			<td>${sessionScope.userInfo.interesting }</td>
		</tr>
	</table>
	</c:when>
	<c:otherwise>               
                <a href="Logon.jsp" target="_top">请先登录！</a>
    </c:otherwise>
	</c:choose>
</body>
</html>